home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
doordr50.zip
/
UNITINTR.ARJ
/
DDSCOTT.INT
< prev
next >
Wrap
Text File
|
1992-02-02
|
2KB
|
53 lines
unit ddscott;
interface
uses dos,crt;
type
adaptertype= (MDA,CGA,EGAMono,EGAColor);
datetype=string[6];
screentype= array[1..4000] of byte;
screenptr=^screentype;
var
screen: screenptr;
x,y: integer;
ch: char;
DOS_Major,DOS_Minor : Word;
hexon: boolean;
function va(n: integer): string;
function wva(n: word): string;
function lva(n: longint): string;
function rva(n: real): string;
function stu(s: string): string;
function locase(c: char): char;
function stl(s: string): string;
function namestr(s: string): string;
function exist(file_name: string): boolean;
procedure delete_file(fn: string);
procedure setmode(modenumber: byte);
procedure set43lines;
procedure set25lines;
function isega: boolean;
function queryadaptertype: adaptertype;
function determinepoints: integer;
procedure cursoron;
procedure cursoroff;
procedure cursorblock;
function screenaddress: word;
procedure savescreen;
procedure restorescreen;
function date: datetype;
function bitcheck(n: word; b: byte): boolean;
procedure setbit(var n: word; b: byte);
procedure resetbit(var n: word; b: byte);
procedure copyfile(f1,f2: string);
function GetHandle(var F : File) : Word;
function DosVer(var Minor : Word) : Word;
function LockFile(Handle : Word; FilePosition,FileLength : LongInt) : Word;
function UnLockFile(Handle : Word; FilePosition,FileLength : LongInt) : Word;
function RetryFile(Handle,Wait,Retry : Word) : Word;
function hex(i: byte): string;
procedure HexFilt(var s: string);
procedure HexToDec(var s: string);